import request from '@/utils/request'

// 查询结算类别列表
export function listSettlement_cat(query) {
  return request({
    url: '/bms/settlement_cat/list',
    method: 'get',
    params: query
  })
}

// 查询结算类别详细
export function getSettlement_cat(id) {
  return request({
    url: '/bms/settlement_cat/' + id,
    method: 'get'
  })
}

// 新增结算类别
export function addSettlement_cat(data) {
  return request({
    url: '/bms/settlement_cat',
    method: 'post',
    data: data
  })
}

// 修改结算类别
export function updateSettlement_cat(data) {
  return request({
    url: '/bms/settlement_cat',
    method: 'put',
    data: data
  })
}

// 删除结算类别
export function delSettlement_cat(id) {
  return request({
    url: '/bms/settlement_cat/' + id,
    method: 'delete'
  })
}

// 导出结算类别
export function exportSettlement_cat(query) {
  return request({
    url: '/bms/settlement_cat/export',
    method: 'get',
    params: query
  })
}